home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
clang
/
c_text.zip
/
CLEAR.ASM
< prev
next >
Wrap
Assembly Source File
|
1987-06-16
|
954b
|
35 lines
;--------------------------------------------------------------------------;
; Clear(attr) - attr is the attribute for blank lines ;
;--------------------------------------------------------------------------;
ASSUME CS:_TEXT
_TEXT SEGMENT BYTE PUBLIC 'CODE'
PUBLIC _CLEAR
_CLEAR PROC NEAR
PUSH BP
MOV BP,SP
PUSH DI
PUSH SI
PUSH DS
PUSH ES
MOV BH,[BP+4] ;Attribute character
MOV AH,6 ;Service 6, Scroll
XOR AL,AL ;Clear Section
XOR CX,CX ;Upper left 0,0
MOV DX,184Fh ;Lower right 24,79
INT 10h
POP ES
POP DS
POP SI
POP DI
POP BP
RET
_CLEAR ENDP
_TEXT ENDS
END